package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 合同模版管理对象 gw_template
 *
 * @author ruoyi
 * @date 2025-04-23
 */
public class GwTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 所属公司 */
    private String companyId;

    private String queryType;

    /** 模板名称 */
    @Excel(name = "模板名称")
    @NotNull(message = "模板名称不能为空")
    @Length(max = 500, message = "模板名称不能超过500字符")
    private String templateName;

    /** 模板类型 */
    @Excel(name = "模板类型")
    @NotNull(message = "模板类型不能为空")
    private String templateType;

    /** 模板文件 */
    @Excel(name = "模板文件")
    @NotNull(message = "模板文件不能为空")
    private String templateUrl;

    @Excel(name = "排序")
    private Long sortNo;

    /** 删除标识 */
    private String delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setCompanyId(String companyId)
    {
        this.companyId = companyId;
    }

    public String getCompanyId()
    {
        return companyId;
    }

    public void setTemplateName(String templateName)
    {
        this.templateName = templateName;
    }

    public String getTemplateName()
    {
        return templateName;
    }

    public void setTemplateType(String templateType)
    {
        this.templateType = templateType;
    }

    public String getTemplateType()
    {
        return templateType;
    }

    public void setTemplateUrl(String templateUrl)
    {
        this.templateUrl = templateUrl;
    }

    public String getTemplateUrl()
    {
        return templateUrl;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getQueryType() {
        return queryType;
    }

    public void setQueryType(String queryType) {
        this.queryType = queryType;
    }

    public Long getSortNo() {
        return sortNo;
    }

    public void setSortNo(Long sortNo) {
        this.sortNo = sortNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("queryType", getQueryType())
            .append("sortNo", getSortNo())
            .append("companyId", getCompanyId())
            .append("templateName", getTemplateName())
            .append("templateType", getTemplateType())
            .append("templateUrl", getTemplateUrl())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
